package com.kkwrite.regimen.common.entity.dto.order;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by lisha on 2018/7/30 20:50.
 *
 * @author lisha
 */
public class OrderPageableOutDTO implements Serializable {
    private static final long serialVersionUID = -7216183170924292980L;

    private Integer totalPage;
    private Long totalElements;
    private List<OrderData> data;

    public OrderData createOrderData() {
        return new OrderData();
    }

    public OrderPageableOutDTO() {
        super();
        this.data = new ArrayList<>();
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
    }

    public Long getTotalElements() {
        return totalElements;
    }

    public void setTotalElements(Long totalElements) {
        this.totalElements = totalElements;
    }

    public List<OrderData> getData() {
        return data;
    }

    public void setData(List<OrderData> data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "OrderPageableOutDTO{" +
                "totalPage=" + totalPage +
                ", totalElements=" + totalElements +
                ", data=" + data +
                '}';
    }

    public class OrderData {
        private String orderCode;
        private Short orderType;
        private Short orderStatus;
        private Double orderAmount;
        private Integer orderQuantity;
        private LocalDateTime createTime;
        private String itemName;
        private String picturePath;
        private Short refund;
        private Short refundStatus;
        private Short duration;
        private String phoneNum;
        private Long shopId;
        private Integer reviewed;
        private Integer shopReviewed;
        private Short payStatus;

        public String getOrderCode() {
            return orderCode;
        }

        public void setOrderCode(String orderCode) {
            this.orderCode = orderCode;
        }

        public Short getOrderType() {
            return orderType;
        }

        public void setOrderType(Short orderType) {
            this.orderType = orderType;
        }

        public Short getOrderStatus() {
            return orderStatus;
        }

        public void setOrderStatus(Short orderStatus) {
            this.orderStatus = orderStatus;
        }

        public Double getOrderAmount() {
            return orderAmount;
        }

        public void setOrderAmount(Double orderAmount) {
            this.orderAmount = orderAmount;
        }

        public Integer getOrderQuantity() {
            return orderQuantity;
        }

        public void setOrderQuantity(Integer orderQuantity) {
            this.orderQuantity = orderQuantity;
        }

        public LocalDateTime getCreateTime() {
            return createTime;
        }

        public void setCreateTime(LocalDateTime createTime) {
            this.createTime = createTime;
        }

        public String getItemName() {
            return itemName;
        }

        public void setItemName(String itemName) {
            this.itemName = itemName;
        }

        public String getPicturePath() {
            return picturePath;
        }

        public void setPicturePath(String picturePath) {
            this.picturePath = picturePath;
        }

        public Short getDuration() {
            return duration;
        }

        public void setDuration(Short duration) {
            this.duration = duration;
        }

        public Short getRefundStatus() {
            return refundStatus;
        }

        public void setRefundStatus(Short refundStatus) {
            this.refundStatus = refundStatus;
        }

        public Short getRefund() {
            return refund;
        }

        public void setRefund(Short refund) {
            this.refund = refund;
        }

        public String getPhoneNum() {
            return phoneNum;
        }

        public void setPhoneNum(String phoneNum) {
            this.phoneNum = phoneNum;
        }

        public Long getShopId() {
            return shopId;
        }

        public void setShopId(Long shopId) {
            this.shopId = shopId;
        }

        public Integer getReviewed() {
            return reviewed;
        }

        public void setReviewed(Integer reviewed) {
            this.reviewed = reviewed;
        }

        public Short getPayStatus() {
            return payStatus;
        }

        public void setPayStatus(Short payStatus) {
            this.payStatus = payStatus;
        }

        public Integer getShopReviewed() {
            return shopReviewed;
        }

        public void setShopReviewed(Integer shopReviewed) {
            this.shopReviewed = shopReviewed;
        }

        @Override
        public String toString() {
            return "OrderData{" +
                    "orderCode='" + orderCode + '\'' +
                    ", orderStatus=" + orderStatus +
                    ", orderAmount=" + orderAmount +
                    ", orderQuantity=" + orderQuantity +
                    ", createTime=" + createTime +
                    ", itemName='" + itemName + '\'' +
                    ", picturePath='" + picturePath + '\'' +
                    ", refund=" + refund +
                    ", refundStatus=" + refundStatus +
                    ", duration=" + duration +
                    ", phoneNum='" + phoneNum + '\'' +
                    ", shopId=" + shopId +
                    ", reviewed=" + reviewed +
                    ", shopReviewed=" + shopReviewed +
                    ", payStatus=" + payStatus +
                    '}';
        }
    }

}
